.class public Les/no;
.super Les/gl;
.source "SimpleCmsManager.java"


# static fields
.field private static j:Les/no;


# instance fields
.field private final d:Ljava/lang/String;

.field private final e:Ljava/lang/String;

.field private final f:Ljava/lang/String;

.field private g:I

.field public h:Z

.field public i:I


# direct methods
.method private constructor <init>()V
    .locals 2

    .line 1
    sget-object v0, Les/fl;->e:Ljava/lang/String;

    const/4 v1, 0x1

    invoke-direct {p0, v0, v1}, Les/gl;-><init>(Ljava/lang/String;Z)V

    const-string v0, "keep_alive_enable"

    .line 2
    iput-object v0, p0, Les/no;->d:Ljava/lang/String;

    const-string v0, "day_pre_fill_ad_limit"

    .line 3
    iput-object v0, p0, Les/no;->e:Ljava/lang/String;

    const-string v0, "dlna_intro_card_show_limit"

    .line 4
    iput-object v0, p0, Les/no;->f:Ljava/lang/String;

    const/4 v0, 0x3

    .line 5
    iput v0, p0, Les/no;->g:I

    const/4 v0, 0x0

    .line 6
    iput-boolean v0, p0, Les/no;->h:Z

    .line 7
    iput v0, p0, Les/no;->i:I

    return-void
.end method

.method private a(Z)V
    .locals 0

    return-void
.end method

.method public static h()Les/no;
    .locals 2

    .line 1
    const-class v0, Les/no;

    monitor-enter v0

    .line 2
    :try_start_0
    sget-object v1, Les/no;->j:Les/no;

    if-nez v1, :cond_0

    .line 3
    new-instance v1, Les/no;

    invoke-direct {v1}, Les/no;-><init>()V

    sput-object v1, Les/no;->j:Les/no;

    .line 4
    :cond_0
    sget-object v1, Les/no;->j:Les/no;

    monitor-exit v0

    return-object v1

    :catchall_0
    move-exception v1

    .line 5
    monitor-exit v0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw v1
.end method


# virtual methods
.method protected a(Ljava/lang/String;IZ)Les/ll;
    .locals 3

    const-string p2, "dlna_intro_card_show_limit"

    const-string v0, "day_pre_fill_ad_limit"

    const-string v1, "keep_alive_enable"

    .line 1
    invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v2

    if-nez v2, :cond_3

    .line 2
    :try_start_0
    new-instance v2, Lorg/json/JSONObject;

    invoke-direct {v2, p1}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    .line 3
    invoke-virtual {v2, v1}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result p1

    if-eqz p1, :cond_0

    .line 4
    invoke-virtual {v2, v1}, Lorg/json/JSONObject;->getBoolean(Ljava/lang/String;)Z

    .line 5
    :cond_0
    invoke-virtual {v2, v0}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result p1

    if-eqz p1, :cond_1

    .line 6
    invoke-virtual {v2, v0}, Lorg/json/JSONObject;->getInt(Ljava/lang/String;)I

    .line 7
    :cond_1
    invoke-virtual {v2, p2}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result p1

    if-eqz p1, :cond_2

    .line 8
    invoke-virtual {v2, p2}, Lorg/json/JSONObject;->getInt(Ljava/lang/String;)I

    move-result p1

    iput p1, p0, Les/no;->g:I

    :cond_2
    const-string p1, "show_privacy"

    const/4 p2, 0x0

    .line 9
    invoke-virtual {v2, p1, p2}, Lorg/json/JSONObject;->optBoolean(Ljava/lang/String;Z)Z

    move-result p1

    iput-boolean p1, p0, Les/no;->h:Z

    const-string p1, "adunlock_skip_ad_count"

    .line 10
    invoke-virtual {v2, p1, p2}, Lorg/json/JSONObject;->optInt(Ljava/lang/String;I)I

    move-result p1

    iput p1, p0, Les/no;->i:I

    const-string p1, "pubng_switch"

    const/4 p2, 0x1

    .line 11
    invoke-virtual {v2, p1, p2}, Lorg/json/JSONObject;->optBoolean(Ljava/lang/String;Z)Z

    .line 12
    invoke-static {}, Les/wp;->g()Les/wp;

    move-result-object p1

    invoke-virtual {p1}, Les/wp;->c()Les/yp;

    move-result-object p1

    iget-object p1, p1, Les/yp;->a:Les/xr;

    invoke-virtual {p1, v2}, Les/xr;->a(Lorg/json/JSONObject;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception p1

    .line 13
    invoke-virtual {p0, p1}, Les/gl;->a(Ljava/lang/Exception;)V

    .line 14
    invoke-static {}, Les/wp;->g()Les/wp;

    move-result-object p1

    invoke-virtual {p1}, Les/wp;->c()Les/yp;

    move-result-object p1

    invoke-virtual {p1}, Les/yp;->a()V

    .line 15
    :cond_3
    :goto_0
    invoke-direct {p0, p3}, Les/no;->a(Z)V

    const/4 p1, 0x0

    return-object p1
.end method

.method protected c()Ljava/lang/String;
    .locals 1

    const/4 v0, 0x1

    .line 1
    invoke-direct {p0, v0}, Les/no;->a(Z)V

    const/4 v0, 0x0

    return-object v0
.end method

.method public g()I
    .locals 1

    .line 1
    iget v0, p0, Les/no;->g:I

    return v0
.end method
